import React, { useContext } from 'react';
import { CountContext } from './context/count';

const ShowArea = (props) => {
  const { state } = useContext(CountContext);
  return <div>当前的数字是：{state.count}</div>;
};

export default ShowArea;
